import time
import unittest
from selenium import webdriver
from data001.Page.Page import Page
from ddt import ddt,file_data

@ddt
class MyTestCase(unittest.TestCase):
    def setUp(self):
        self.driver = webdriver.Edge()
        self.driver.maximize_window()
    def tearDown(self):
        time.sleep(2)
        self.driver.quit()
    @file_data('aa.yaml')
    def test_a3mall_001(self,username,password):
        po = Page(self.driver)
        po.test_a3mall_login(username,password)

if __name__ == '__main__':
    unittest.main()
